package com.hzvtc.bosswang.manageuser.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hzvtc.bosswang.manageuser.domain.Class;
import com.hzvtc.bosswang.manageuser.mapper.ClassMapper;
import com.hzvtc.bosswang.manageuser.service.ClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ClassServiceImpl implements ClassService {

    @Autowired
    private ClassMapper classMapper;
    @Override
    public Integer addClass(Class iclass) {
        return classMapper.add(iclass);
    }

    @Override
    public Integer editClass(Class iclass) {
        return classMapper.edit(iclass);
    }

    @Override
    public Integer deleteClass(Long id) {
        return classMapper.delete(id);
    }

    @Override
    public Class selectClassById(Long id) {
        return classMapper.selectClassById(id);
    }

    @Override
    public Page<Class> listClass(Page<Class> page, Class iclass) {
        return classMapper.selectClassList(page,iclass);
    }
}
